package org.excample.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.excample.entity.Quality;
import org.excample.entity.User;

import java.util.List;

@Mapper
public interface QualityMapper {
   @Insert("insert into  quality (id,name,status)" + "values (#{id},#{name},#{status})")
    void  insertQuality(Quality quality);
   @Select("select * from quality")
    List<Quality> select();
    @Select("select * from id where name=#{name}")
    User selectName(String name);
}
